package de.gameduell.framework.facebook {
	import de.gameduell.framework.facebook.communication.FacebookData;

	import flash.events.Event;
	import flash.events.EventDispatcher;

	public class FBBaseApplicationData extends EventDispatcher {
		
		public static const GAMEID_CHANGED:String = "APP_DATA_GAMEID_CHANGED";
		
		protected var _facebookData:FacebookData;
		protected var _gameId:String;
		protected var _jackpot:Jackpot;

		public function FBBaseApplicationData() {
			_facebookData = new FacebookData();
			_jackpot = new Jackpot();
		}

		public function get jackpot():Jackpot {
			return _jackpot;
		}

		public function get facebookData():FacebookData {
			return _facebookData;
		}
	
		public function set gameId(anId:String):void {
			_gameId = anId;
			dispatchEvent(new Event(GAMEID_CHANGED));
		}

		public function get gameId():String {
			return _gameId;
		}
	}
}
